package com.handler;

import com.Config;
import com.amazonaws.auth.AWSStaticCredentialsProvider;
import com.amazonaws.auth.BasicAWSCredentials;
import com.amazonaws.services.s3.AmazonS3;
import com.amazonaws.services.s3.transfer.MyTransferManager;
import com.entity.PackCmd;

public class BaseHandler<T> {

    private static AWSStaticCredentialsProvider awsStaticCredentialsProvider;
    protected MyTransferManager transferManager;
    protected AmazonS3 s3Client;
    protected final PackCmd packCmd;

    public BaseHandler(MyTransferManager transferManager) {
        this.transferManager = transferManager;
        if (transferManager != null) s3Client = transferManager.getAmazonS3Client();
        packCmd = Config.dataManage.getPackCmd();
        execute();
    }

    /** 直接开始执行 */
    protected void execute() {}

    /** 直接开始执行 */
    public void execute(T t) {}

}
